<script setup>
defineProps(['modelValue','width'])
const emit = defineEmits(['update:modelValue'])
</script>

<template>
        <el-select 
        
        :modelValue = modelValue
        @update:modelValue="emit('update:modelValue',$event)"
        placeholder="请选择" :style="{ width }">
            <el-option label="新闻" value="110">新闻</el-option>
            <el-option label="科技" value="120">科技</el-option>
        </el-select>
</template>